how to reduce matrix into Normal Form